package org.example.cloud.payment.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/zipkin")
public class ZipkinController {

    @GetMapping
    public String zipkin(){
        return "zipkin ok";
    }


    @GetMapping("/timeout")
    public String zipkinTimeout() throws InterruptedException {
        Thread.sleep(5000);
        return "zipkin timeout";
    }
}
